package main

import "fmt"

// 给定一个字符串数组["I","am","stupid","and","weak"]
// 用for循环遍历该数组并修改为["I","am","smart","and","strong"]

func main(){
	sourceSlice := []string{"I","am","stupid","and","weak"}	
	for i := range sourceSlice{
		switch i {
		case 2:
			sourceSlice[i] = "smart"
		case 4:
			sourceSlice[i] = "strong"
		}
	}
	fmt.Println(sourceSlice)
}